export default {
	template: '',
	data: function() {
		return {
			reqParam:'',/* reqParam:父组件参数（保留属性名） */
			apiUrl: '',
			dialog:'emptyComponent',
			name:'123',
		}
	},
	setup(){
		var inst = Vue.resolveDynamicComponent('/html/view/test2');
		console.log('inst',inst.component);
	},
	created() {
		console.log('now is loading data');
		
		console.log('接收父组件的参数：',this.reqParam);
		console.log('apiUrl：',this.apiUrl);
		this.name = '';
	},
	methods: {
		/* 父组件回调（保留函数名） */
		parentCallback(param){},
		test() {
			this.name = '张三';
			this.parentCallback('这是子组件的回复');//调用父组件的方法
		}
	}
}